<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <script src="js/echarts.js"></script>
    <script src="js/jquery.js"></script>
</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main" style="width: 600px;height:400px;"></div>
    <script type="text/javascript">
    $.get('https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json', function (cZjson) {
        echarts.registerMap('中华人民共和国', cZjson);
        var chart = echarts.init(document.getElementById('main'));
        option = {
            title: {
                text: '四色预警',
                x:'center'
            },
            tooltip: {
                trigger: 'item',
                showDelay: 0,
                transitionDuration: 0.2
            },
            dataRange:{
            	min:0,
            	max:500,
            	text:['高','低'],
            	realtime:true,
            	calculable:true,
            	color:['orangered','yellow','green']
            },
            series:[
            	{
            		name:'犯罪数量',
            		type:'map',
            		map:'中华人民共和国',
            		mapLocation:{
            			y:60
            		},
            		itemSytle:{
            			emphasis:{label:{show:false}}
            		},
            		data:[
            			{name:'江西省',value:700},
            			{name:'湖北省',value:0}
            		]
            	}
            ],
            
        };
        chart.setOption(option);
    });
    </script>
</body>
</html>
